color editor: Make the sample non-focusable again
authorMatthias Clasen <mclasen@redhat.com>
Wed, 8 Apr 2020 12:08:46 +0000 (08:08 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 9 Apr 2020 21:50:29 +0000 (17:50 -0400)
This is one of the situations, where can-focus can still
be used to tweak focus behavior of leaf widgets. Color
swatches are focusable by default to allow selecting colors
with the keyboard. But when used as color samples, they
should not take focus.

gtk/ui/gtkcoloreditor.ui

index f961866edbdcd12ccedee2a98df84ebbf93687ce..a66a29adb6456b6ec823a33b9b5dcbca61c486a3 100644 (file)
@@ -57,6 +57,7 @@
                 <property name="rgba">rgb(255,255,255)</property>
                 <property name="selectable">False</property>
                 <property name="has-menu">False</property>
+                <property name="can-focus">False</property>
                 <layout>
                   <property name="left-attach">1</property>
                   <property name="top-attach">0</property>